import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ExpandComponent } from './expand/expand.component';
import { Expand2Component } from './expand2/expand2.component';

const routes: Routes = [
  { path: 'expandtable', component: ExpandComponent },
  { path: 'expandtable2', component: Expand2Component },
  { path: '', redirectTo: '/expandtable', pathMatch: 'full' },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
